﻿@{
    ViewBag.Title = "Index";
}

<h1>Lista de Materias</h1>
<a href="@Url.Action("Alta","Materia")">Agregar nueva Materia</a> 
<table>
    <thead>
        <tr>
            <th>Nombre</th>
            <th>Acciones</th>
        </tr>
    </thead>
@foreach (var item in Model)
{
    <tr>
        <td>@item.Nombre</td>
        <td>
            <a href="@Url.Action("Baja","Materia", new{id=item.Id})">Borrar</a>
            <a href="@Url.Action("Modificar","Materia", new{id=item.Id})">Modificar</a>
        </td>
    </tr>
}
</table>

